<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
       <!-- <script src="./01json对象.json"></script> -->
    <script>
    // var dataList
    //使用 fetch请求本地文件，并且json数据格式化
    var data,coed
    var dataList = fetch('./01json对象.json').then((response) => response.json().then((json) => {console.log('',json.data);}))
    // dataList = json.data;
    // console.log('',dataList.then((json) => console.log('',json)));
    // console.log('',data);
    </script>
</body>
</html>